/*
 *  BrokerageFirm.h
 *  StrategyInspector
 *
 *  Created by jiro on 12/08/11.
 *  Copyright 2012 jiro music. All rights reserved.
 *
 */

#pragma once

#import "DbTableEntry.h"
#import "DbConstants.h"

class BrokerageFirm : public DbTableEntry
{
public:

	static NSString* tableName();
	static NSString* queryCreateTable();
	static NSString* queryInsertInitialValues();
	static NSString* querySelectAll( const std::vector< ClauseNode >& clauses );
	static NSString* querySelect( const std::vector< FieldNode >& fieldNodes, const std::vector< ClauseNode >& clauses );

	BrokerageFirm();
	
	BrokerageFirm( int index, NSString* name );

	NSString* queryInsert() const;
	NSString* queryInsertValue() const;

public:

	int index;
	
	NSString* name;

};
